Coins Assignment
A=5
B=10
C=25
Z=1